class Key:

    def __init__(self, framework):
        self.framework = framework
        self.command = {}
        self.key_status = 0

    def key(self):
        self.command = {"type": "key-status"}
        if self.framework.status:
            self.framework.write(self.command)
